#include <QtGui/QApplication>
#include <QTextCodec>

#include "dialog.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //中文支持
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));        //支持Tr中文
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

    Dialog w;
    w.show();
    
    return a.exec();
}
